/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/device.html#wxgetscreenbrightnessobject)
 */
export default function get_screen_brightness() {
	return new Promise<number>((resolve, reject) => {
		wx.getScreenBrightness({
			fail() {
				reject(false);
			},
			success(res) {
				resolve(res);
			}
		});
	});
}
